﻿<?xml version="1.0" encoding="utf-8" ?>
<Rules FriendlyName="WebParts">
  <Rule>
    <TypeName>SpCop.General.Modules.WebPartModulesHaveValidTypes</TypeName>
    <Name>Respect element scopes</Name>
    <CheckId>WSP0021</CheckId>
    <Category>WebParts</Category>
    <Resolution Name="WebPartFileNotFound">The feature {0} references a file {1} that is not part of the package.</Resolution>
    <Resolution Name="WebPartTypeDoesNotExist">The feature {0} has a webpart {1} that contains a type {2} that is not found.{3}.</Resolution>
    <MessageLevel Certainty="95">CriticalError</MessageLevel>
    <FixCategories>Breaking</FixCategories>
    <ProductVersion>SharePoint2007, SharePoint2010</ProductVersion>
  </Rule>
  <Rule>
    <TypeName>SpCop.General.Modules.PageLayoutsOnlyContainContentControls</TypeName>
    <Name>Respect element scopes</Name>
    <CheckId>WSP0022</CheckId>
    <Category>WebParts</Category>
    <Resolution Name="WebPartFileNotFound">The feature {0} references a file {1} that is not part of the package.</Resolution>
    <Resolution Name="WebPartTypeDoesNotExist">The feature {0} has a webpart {1} that contains a type {2} that is not found.{3}.</Resolution>
    <MessageLevel Certainty="95">CriticalError</MessageLevel>
    <FixCategories>Breaking</FixCategories>
    <ProductVersion>SharePoint2007, SharePoint2010</ProductVersion>
  </Rule>
  

</Rules>
